home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950726-19950929 / 000241_news@columbia.edu_Mon Aug 28 05:07:49 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA14182
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 28 Aug 1995 18:23:00 -0400
  3. Received: by apakabar.cc.columbia.edu id AA01711
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 28 Aug 1995 18:22:58 -0400
  5. Path: news.columbia.edu!panix!bloom-beacon.mit.edu!spool.mu.edu!uwm.edu!omnifest.uwm.edu!omnifest.uwm.edu!not-for-mail
  6. From: lgreene@omnifest.uwm.edu (Laura Greene)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: accessing a serial device on UNIX -- HELP!
  9. Date: 28 Aug 1995 00:07:49 -0500
  10. Organization: Omnifest
  11. Lines: 33
  12. Distribution: na
  13. Message-Id: <41riv5$thl@omnifest.uwm.edu>
  14. Nntp-Posting-Host: 129.89.70.58
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17.  
  18. Here's hoping a kermit/serial device guru can help.
  19.  
  20. I have been trying to access a serial device via unix.  (HP-UX, actually).
  21.  
  22. I need to send a "connect" string, and then go into an infinite loop,
  23. receiving and processing, a char at a time.  (this device sends me
  24. a packet of about 64 bits/minute.
  25.  
  26. my problem is that when I have sent the string, my next read fails.
  27. I have tried forking, and having one device read and one write, but
  28. the read either hangs completely, or GIVES ME THE STRING THAT I SENT IN,
  29. and nothing else.  However, when I reset the modem, while the program
  30. continues to run, everything is cool, and I can do all my reads (though
  31. of course, I had not sent my connect string).
  32.  
  33. I have enabled CREAD via ioctl(),  and I have what I think is a fairly
  34. raw device.  so what do I need to do to get the read to work following
  35. a write?
  36.  
  37. I have the C-Kermit source, and hacked that down to 1000 lines, and
  38. can't see that it is doing anything besides non-blocking IO.
  39.  
  40. I thought that I might have to flash DTR or something, but that wasn't it,
  41. nor was putting forks in various places.
  42.  
  43.  
  44. Anybody got any ideas?  I suppose its possible that my fork is not in
  45. the right place, forking before or after I actually open the device....
  46.  
  47.  
  48. help!  I'm confused!  it can't be that hard to do what I want to do!
  49. thanks!